import axios from "@/utils/axios";

export const getTree = (data) => axios.get("/admin/dept/tree", data);

export const getObj = (id) => axios.get(`/admin/dept/${id}`);

export const delDept = (id) => axios.delete(`/admin/dept/${id}`);

export const addDept = (data) => axios.post(`/admin/dept/`, data);

export const updateDept = (data) => axios.put(`/admin/dept/`, data);
